tools: turbostat: Add checks for failure of fgets() and fscanf()
authorBen Hutchings <ben@decadent.org.uk>
Tue, 11 Sep 2018 02:07:28 +0000 (03:07 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 15 May 2019 22:07:16 +0000 (23:07 +0100)
commita8913c891bebe4620bfb21d9ea931ac1547a41f9
tree9b77d57a61e1b67e68d791b40e293c6cb598acac
parent53c830e6b21f680f5db6dc0731f7d53efc46ac69
tools: turbostat: Add checks for failure of fgets() and fscanf()

Most calls to fgets() and fscanf() are followed by error checks.
Add an exit-on-error in the remaining cases.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/x86
Gbp-Pq: Name tools-turbostat-Add-checks-for-failure-of-fgets-and-.patch
tools/power/x86/turbostat/turbostat.c